package lab01;

import java.util.Scanner;

public class Test06 {
    public static void main(String[] args) {
        Scanner na = new Scanner(System.in);
        System.out.println("输入学生姓名：");
        String name = na.next();

        Scanner gr = new Scanner(System.in);
        System.out.println("请输入成绩1-5：");
        int grade = gr.nextInt();

        if (grade == 1) {
            System.out.println("不及格");
        } else if (grade == 2) {
            System.out.println("及格");
        } else if (grade == 3) {
            System.out.println("中等");
        } else if (grade == 4) {
            System.out.println("良好");
        } else System.out.println("优秀");


    }
}
